/*
 * @Author: xiaoyan
 * @Date: 2021-11-18 17:06:23
 * @LastEditors: xiaoyan
 * @LastEditTime: 2021-11-26 17:15:01
 * @Description: 
 * @FilePath: \user_auth_front\src\index.tsx
 */
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import reportWebVitals from './reportWebVitals';

import Routes from "./router";
import { BrowserRouter } from "react-router-dom";

import { StoreContext } from "redux-react-hook";
import store from "./store";

import  "./styles/index.scss";

ReactDOM.render(
    <StoreContext.Provider value={store}>
        <BrowserRouter>
            <App>
                <Routes />
            </App>
        </BrowserRouter>
    </StoreContext.Provider>,
    document.getElementById('app')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
